﻿using ExamPlat.Models;
using ExamPlat.ViewModels;
using System.Collections.Generic;

namespace ExamPlat.Repositories
{
    interface IExamQuesRepository
    {
        /// <summary>
        /// 增加考题
        /// </summary>
        /// <param name="model">考题信息</param>
        /// <returns></returns>
        int AddExamQues(ExamQues model);
        /// <summary>
        /// 修改考题
        /// </summary>
        /// <param name="model">考题信息</param>
        /// <returns></returns>
        int UpdateExamQues(ExamQues model);
        /// <summary>
        /// 删除考题
        /// </summary>
        /// <param name="id">考题ID</param>
        /// <returns></returns>
        int DelExamQues(int id);
        /// <summary>
        /// 根据考题ID查询考题信息
        /// </summary>
        /// <param name="id">考题ID</param>
        /// <returns></returns>
        ExamQues GetExamQuesByID(int id);
        /// <summary>
        /// 根据条件查询考题信息
        /// </summary>
        /// <param name="examQuesTitle">考题标题</param>
        /// <returns></returns>
        IList<ExamQues> GetExamQuesByCondition(string examQuesTitle);

        /// <summary>
        /// 预览考题信息
        /// </summary>
        /// <param name="id">考题ID</param>
        /// <returns></returns>
        ViewExamQues PreviewExamQues(int id);
    }
}